package com.atjinggu.jinggumail.product.service;

import com.atjinggu.jinggumail.product.vo.AttrAttrGroupRelationVo;
import com.atjinggu.jinggumail.product.vo.AttrGroupWithAttrsVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atjinggu.jinggumail.common.utils.PageUtils;
import com.atjinggu.jinggumail.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author jingming
 * @email jingming@gmail.com
 * @date 2020-12-12 23:08:28
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Integer catelogId);

    PageUtils listAttrRelation(Map<String, Object> params, Integer attrGroupId);

    void attrRelationDelete(List<AttrAttrGroupRelationVo> asList);

    PageUtils listNoAttrRelation(Map<String, Object> params, Integer attrGroupId);

    void saveAttrRelation(List<AttrAttrGroupRelationVo> relations);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);

}

